//
//  ADImageSelectView.h
//  ADKit
//
//  Created by duzexu on 2017/12/28.
//

#import <UIKit/UIKit.h>

@class ADImageSelectView;
@protocol ADImageSelectViewDelegate <NSObject>

- (void)view:(ADImageSelectView *)view didSelectWithImage:(UIImage *)image;

@end

@interface ADImageSelectView : UIImageView

@property (nonatomic, weak) IBOutlet id<ADImageSelectViewDelegate> delegate;
@property (nonatomic, assign) IBInspectable BOOL allowsEditing; //是否允许编辑
@property (nonatomic, assign) IBInspectable BOOL saveAlbum; //摄像头拍摄同时保存相册

- (void)selectImage:(id)sender;

@end
